package com.xiangjun.proxytest.proxytest.impl;

import com.xiangjun.proxytest.proxytest.HttpOriginInterface;
import org.springframework.beans.factory.annotation.Autowired;

public class HttpProxy implements HttpOriginInterface {

    private HttpOrigin httpOrigin;

    public HttpProxy(HttpOrigin httpOrigin) {
        this.httpOrigin = httpOrigin;
    }

    @Override
    public String post(String request) {
        return httpOrigin.post(request);
    }

    @Override
    public String get(String request) {
        return httpOrigin.get(request);
    }
}
